﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FangDuShi_Admin.BLL
{
    /// <summary>
    /// 经纪人 逻辑类
    /// </summary>
    public class Realtor
    {
        /// <summary>
        /// 经纪人BLL
        /// </summary>
        private DAL.Realtor realtorDAL = new DAL.Realtor();
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        public bool ExistsMobile(string mobile)
        {
            return realtorDAL.ExistsMobile(mobile);
        }

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public FangDuShi_Admin.Model.Realtor GetModel(decimal realtorID)
        {

            return realtorDAL.GetModel(realtorID);
        }
        /// <summary>
        /// 获取真实姓名
        /// </summary>
        /// <param name="mobile"></param>
        /// <returns></returns>
        public string GetRealName(string mobile)
        {
            return realtorDAL.GetRealName(mobile);
        }
        /// <summary>
        /// 获取经纪人ID
        /// </summary>
        /// <param name="mobile"></param>
        /// <returns></returns>
        public decimal GetRealtorID(string mobile)
        {
            return realtorDAL.GetRealtorID(mobile);
        }

         /// <summary>
        /// 获取用户密码
        /// </summary>
        /// <param name="mobile"></param>
        /// <returns></returns>
        public string GetUserPassword(string mobile)
        {
            return realtorDAL.GetUserPassword(mobile);
        }
    }

}
